package org.shj.jvm;

/**
 * -server -XX:+DoEscapeAnalysis -XX:+EliminateLocks
 * 
 * @author Administrator
 *
 */
public class EliminateLock {

	public static void main(String[] args) {
		long begin = System.currentTimeMillis();
		StringBuffer sb = new StringBuffer();
		for(int i = 0; i < 1000000; i++){
			sb.append(i);
		}
		long end = System.currentTimeMillis();
		System.out.println(end - begin);

	}

}
